<template>
    <div>
        <header>
            <slot name="head"></slot>
        </header>
        <main>
            
            <slot></slot>
        </main>
        <footer>
            <slot name="foot"></slot>
        </footer>
    </div>
</template>
<script>
export default {
    

//匿名插槽,具名插槽 
}
</script>
<style>
.my-slot{
    color:red;
    font-weight: 200;

}
</style>